home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Agent Central Host Computer
/
Agent - Central Host Computer.iso
/
_SETUP.1
/
operations.sql
< prev
next >
Wrap
Text File
|
2000-05-12
|
964b
|
25 lines
/* RCSVER $Id: operations.sql,v 1.3 1999-03-19 09:48:55-06 randy CURRENT $ */
/* *************************************************************************
* Copyright (C) 1999, Agent Systems, Inc. All Rights Reserved.
*
* Name: operations.sql
* Date: 02/17/1999
* memo: Randy Wood
* Description: Create the operations table. This table contains all
* users and their associated operator types.
* Changes:
************************************************************************* */
CREATE TABLE operations
(
user_id NUMBER(38) /* ID of user */
CONSTRAINT ref1_operations REFERENCES users(user_id)
ON DELETE CASCADE,
op_type NUMBER(38) /* Type of user: driver, rev. servicer, etc. */
CONSTRAINT ref2_operations REFERENCES optypes(op_type)
ON DELETE CASCADE,
subsys_id NUMBER(38)
CONSTRAINT ref3_operations REFERENCES subsystems(id)
ON DELETE CASCADE,
CONSTRAINT pk_operations PRIMARY KEY (user_id, subsys_id)
);